<?php

add_action('init','of_options');

if (!function_exists('of_options')) {
function of_options(){

// VARIABLES
$themename = "Architec";
$shortname = "arc";

// Populate siteoptions option in array for use in theme
global $of_options;
$of_options = get_option('of_options');
$GLOBALS['template_path'] = ARC_FRAMEWORK;

//Homepage Slider Effects
$homepage_slider_effects = array("sliceDown","sliceDownLeft","sliceUp","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","random","slideInRight","slideInLeft","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse");



/*-----------------------------------------------------------------------------------*/
/* Create Architec Options Array */
/*-----------------------------------------------------------------------------------*/

// FIRST OPTION

$options = array();

$options[] = array( "name" => "General Settings",
			"type" => "heading");
			

$options[] = array( "name" => "Website Logo - Light Theme",
			"desc" => "Upload a custom logo for your Website (light theme).",
			"id" => $shortname."_sitelogo_light",
			"std" => "",
			"type" => "upload");
			
$options[] = array( "name" => "Website Logo - Dark Theme",
			"desc" => "Upload a custom logo for your Website (dark theme).",
			"id" => $shortname."_sitelogo_dark",
			"std" => "",
			"type" => "upload");
			
$options[] = array( "name" => "Favicon",
			"desc" => "Upload a 16px x 16px image that will be your website's favicon.<br /><br /><em>We recommend converting the favicon into .ico format before uploading.</em>",
			"id" => $shortname."_favicon",
			"std" => "",
			"type" => "upload");	
									   
$options[] = array( "name" => "Tracking Code",
			"desc" => "Paste Google Analytics (or other) tracking code here.",
			"id" => $shortname."_google_analytics",
			"std" => "",
			"type" => "textarea");
			
			
//SECOND OPTION			
						
$options[] = array( "name" => "Style Options",
			"type" => "heading");
		
$options[] = array( "name" => "Website Color Scheme",
			"desc" => "Select the color scheme for your website (light or dark).",
			"id" => $shortname."_main_scheme",
			"std" => "",
			"type" => "images",
			"options" => array(
				'default_light' => get_template_directory_uri() . '/img/lighttheme.jpg',
				'default_dark' => get_template_directory_uri() . '/img/darktheme.jpg'
				));
			
$options[] = array( "name" => "Color scheme switcher",
			"desc" => "Check it to add a small switcher, between light and dark, on the top of the website.",
			"id" => $shortname."_color_switcher",
			"std" => "true",
			"type" => "checkbox");
			

//THIRD OPTION
								
$options[] = array( "name" => "Interface Options",
			"type" => "heading");
							
				
$options[] = array( "name" => "Home Page Slider Photos",
			"desc" => "Enter the photos URL, one per line.",
			"id" => $shortname."_homepage_slider_photos",
			"std" => "",
			"type" => "textarea");
			
$options[] = array( "name" => "Home Page Slider Effect",
			"desc" => "Select the default effect to the homepage background slider.",
			"id" => $shortname."_homepage_slider_effect",
			"std" => "fade",
			"type" => "select",
			"options" => $homepage_slider_effects);

$options[] = array( "name" => "Home Page Slider Speed",
			 "desc" => "Enter the default speed to the homepage background slider (miliseconds).",
			 "id" => $shortname."_homepage_slider_speed",
			 "std" => "10000",
			 "type" => "text");

$options[] = array( "name" => "Home Page Slider Control Navigation",
			"desc" => "Check it to add a control navigation to the right top of the slide.",
			"id" => $shortname."_homepage_slider_controlnav",
			"std" => "false",
			"type" => "checkbox");
			
$options[] = array( "name" => "Home Page Slider Direction Navigation",
			"desc" => "Check it to add direction navigation arrows to the slide (on mouse over).",
			"id" => $shortname."_homepage_slider_directionnav",
			"std" => "false",
			"type" => "checkbox");
			
$options[] = array( "name" => "Home Page Slogan Text 1",
			 "desc" => "Enter the default text for the slogan text over slider.",
			 "id" => $shortname."_homepage_slogan_text1",
			 "std" => "",
			 "type" => "text");

$options[] = array( "name" => "Home Page Slogan Text 2",
			 "desc" => "Enter the default text for the slogan text over slider.",
			 "id" => $shortname."_homepage_slogan_text2	",
			 "std" => "",
			 "type" => "text");
			
$options[] = array( "name" => "Contact Us Trigger",
			 "desc" => "Check it to add an option, at the bottom of the menu, to open the top slider.",
			 "id" => $shortname."_contactus_option",
			 "std" => "false",
			 "type" => "checkbox");
			 
$options[] = array( "name" => "Contact Us Trigger Text",
			 "desc" => "Enter the default text for the 'Contact Us' menu option.",
			 "id" => $shortname."_contactus_option_text",
			 "std" => "Contact Us",
			 "type" => "text");
			
$options[] = array( "name" => "Search Form",
			 "desc" => "Check it to add the search box on the top right.",
			 "id" => $shortname."_search_form",
			 "std" => "true",
			 "type" => "checkbox");
			
$options[] = array( "name" => "Search Text",
			 "desc" => "Enter the default text for the search box.",
			 "id" => $shortname."_search_text",
			 "std" => "Search Anything",
			 "type" => "text");
			
$options[] = array( "name" => "Footer Left Text",
			 "desc" => "Enter the default text for footer text (left side).",
			 "id" => $shortname."_footer_left_text",
			 "std" => "&copy; Copyrights 2011 ARCHITEC",
			 "type" => "text");	
			
$options[] = array( "name" => "Footer Right Text",
			 "desc" => "Enter the default text for footer text (right side).",
			 "id" => $shortname."_footer_right_text",
			 "std" => "Theme by <a href='http://themeforest.com/user/designare' target='_blank'>Designare</a>",
			 "type" => "text");
			
		
//FOURTH OPTION						

$options[] = array( "name" => "Personal Info",
			"type" => "heading");
			
$options[] = array( "name" => "Address",
			 "desc" => "Enter your company's address.",
			 "id" => $shortname."_company_address",
			 "std" => "",
			 "type" => "textarea");
					
$options[] = array( "name" => "Phone",
			 "desc" => "Enter your company's phone number.",
			 "id" => $shortname."_company_phone",
			 "std" => "",
			 "type" => "text");
							
$options[] = array( "name" => "Fax",
			 "desc" => "Enter your company's fax number.",
			 "id" => $shortname."_company_fax",
			 "std" => "",
			 "type" => "text");
			
$options[] = array( "name" => "Company's Email",
			 "desc" => "Enter your company's email.",
			 "id" => $shortname."_company_email",
			 "std" => "",
			 "type" => "text");	
			
$options[] = array( "name" => "Personal Email",
			 "desc" => "Enter your personal email.",
			 "id" => $shortname."_personal_email",
			 "std" => "",
			 "type" => "text");	
			
$options[] = array( "name" => "Facebook",
			 "desc" => "Enter your company's facebook URL.",
			 "id" => $shortname."_company_facebook",
			 "std" => "",
			 "type" => "text");
					
$options[] = array( "name" => "Twitter",
			 "desc" => "Enter your company's twitter URL.",
			 "id" => $shortname."_company_twitter",
			 "std" => "",
			 "type" => "text");
			
//FIFTH OPTION						

$options[] = array( "name" => "Top Slider Options",
			"type" => "heading");
			
$options[] = array( "name" => "Title 1",
			 "desc" => "Enter the title for the left section.",
			 "id" => $shortname."_topslider_title1",
			 "std" => "Our Location",
			 "type" => "text");
					
$options[] = array( "name" => "Title 2",
			 "desc" => "Enter the title for the right section",
			 "id" => $shortname."_topslider_title2",
			 "std" => "Hello!",
			 "type" => "text");
			 
$options[] = array( "name" => "Google Maps Location",
			 "desc" => "Enter the latitude and longitude of your company's location, separated by a comma.<br><br><em>Ex: 38.706932,-9.135632</em>",
			 "id" => $shortname."_company_location",
			 "std" => "",
			 "type" => "text");

$options[] = array( "name" => "Map Default Image",
			"desc" => "If no image is selected, one will be generated based in your coordinates.<br><em>Recommended image size: 392px x 222px </em>",
			"id" => $shortname."_map_default_image",
			"std" => "",
			"type" => "upload");

$options[] = array( "name" => "Message Box Default Text",
			 "desc" => "Enter the default text of the message box.",
			 "id" => $shortname."_contactform_message_text",
			 "std" => "How can we help you?",
			 "type" => "text");

$options[] = array( "name" => "Name Error Text",
			 "desc" => "Enter the error text when something is wrong with the name box.",
			 "id" => $shortname."_contactform_name_error",
			 "std" => "Please enter a Name",
			 "type" => "text");

$options[] = array( "name" => "Email Error Text",
			 "desc" => "Enter the error text when something is wrong with the email box.",
			 "id" => $shortname."_contactform_email_error",
			 "std" => "Please enter a valid Email",
			 "type" => "text");

$options[] = array( "name" => "Message Error Text",
			 "desc" => "Enter the error text when something is wrong with the message box.",
			 "id" => $shortname."_contactform_message_error",
			 "std" => "Please enter a Message",
			 "type" => "text");

$options[] = array( "name" => "Email Subject",
			 "desc" => "Enter the subject of the email that is send to you.",
			 "id" => $shortname."_contactform_email_subject",
			 "std" => "Message from your website",
			 "type" => "text");
			 
$options[] = array( "name" => "Send Email Button Text",
			 "desc" => "Enter the text for the Send Email button.",
			 "id" => $shortname."_contactform_button_text",
			 "std" => "Send Email",
			 "type" => "text");		

update_option('of_template',$options); 					  
update_option('of_themename',$themename);   
update_option('of_shortname',$shortname);

}
}
?>